package com.tvein.sanguo.crowd.controller
{
	//flash
	//pureMVC
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.utilities.fabrication.patterns.command.SimpleFabricationCommand;	
	//custom
	import com.tvein.sanguo.Crowd;
	import com.tvein.sanguo.crowd.model.SystemProxy;
	import com.tvein.sanguo.crowd.view.CrowdMediator;
	import com.tvein.sanguo.crowd.view.SystemMediator;
//
	public class CrowdStartupCommand extends SimpleFabricationCommand
	{
		override public function execute(note:INotification):void
		{
			var crowd:Crowd = note.getBody() as Crowd;
			
			facade.registerProxy(new SystemProxy());
			
			registerMediator(new SystemMediator(crowd));
			registerMediator(new CrowdMediator(crowd));
		}
	}
}